package com.frejoys.common.vo.order;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订单商品展示
 *
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/4/26 14:13
 */
@Data
public class OrderGoodsVo {
    //商品id
    @Schema(type = "Integer", name = "goodsId", description = "商品id")
    private Integer goodsId;

    // 名称
    @Schema(type = "String", name = "goodsName", description = "商品名称")
    private String goodsName;

    // 商品封面图
    @Schema(type = "String", name = "cover", description = "商品封面图")
    private String cover;

    // 品类id
    @Schema(type = "Integer", name = "categoryId", description = "品类id")
    private Integer categoryId;

    // 名称
    @Schema(type = "String", name = "categoryName", description = "商品品类名称")
    private String categoryName;

    // 数量
    @Schema(type = "Integer", name = "num", description = "数量")
    private Integer num;

    // 单价，现价
    @Schema(type = "BigDecimal", name = "price", description = "单价，现价")
    private BigDecimal price;

    // 总价
    @Schema(type = "BigDecimal", name = "priceTotal", description = "总价")
    private BigDecimal priceTotal;
}
